/**
 * Copyright(c) 2010 Ceno Techonologies Co., Ltd.
 *
 * History:
 *   15-6-18 下午4:22 Created by lyyang
 */
package com.jade.bss.business.bonus;

import java.io.Serializable;
import java.util.Date;
import javax.persistence.*;

/**
 * 红包领用记录
 *
 * @author <a href="mailto:lyyang@ceno.cn">lyyang</a>
 * @version 1.0 15-6-18 下午4:22
 */
@Entity
@Table (name = "BSS_BONUS_RECORD")
public class BonusRecord
        implements Serializable
{

    public static final int STATUS_SENT = 0;

    public static final int STATUS_FAILED = 9;

    public static final int STATUS_RECEIVED = 1;

    public static final int STATUS_REFUND = 2;

    @Id
    @GeneratedValue (generator = "BSS_SEQ_BONUS_RECORD")
    @SequenceGenerator (name = "BSS_SEQ_BONUS_RECORD", sequenceName = "BSS_SEQ_BONUS_RECORD")
    private long id;

    @Column (name = "owner_type")
    private String ownerType;

    @Column (name = "owner_id")
    private String ownerId;

    @Column (name = "bonus_id")
    private long bonusId;

    @Column (name = "receiver_id")
    private String receiverId;

    @Column (name = "receiver_type")
    private String receiverType;

    private int status;

    private long amount;

    @Column (name = "record_time")
    private Date recordTime;

    @Column (name = "order_no")
    private String orderNo;

    private String remark;

    public String getOwnerType()
    {
        return ownerType;
    }

    public void setOwnerType(String ownerType)
    {
        this.ownerType = ownerType;
    }

    public String getOwnerId()
    {
        return ownerId;
    }

    public void setOwnerId(String ownerId)
    {
        this.ownerId = ownerId;
    }

    public long getId()
    {
        return id;
    }

    public void setId(long id)
    {
        this.id = id;
    }

    public long getBonusId()
    {
        return bonusId;
    }

    public void setBonusId(long bonusId)
    {
        this.bonusId = bonusId;
    }

    public String getReceiverId()
    {
        return receiverId;
    }

    public void setReceiverId(String receiverId)
    {
        this.receiverId = receiverId;
    }

    public String getReceiverType()
    {
        return receiverType;
    }

    public void setReceiverType(String receiverType)
    {
        this.receiverType = receiverType;
    }

    public int getStatus()
    {
        return status;
    }

    public void setStatus(int status)
    {
        this.status = status;
    }

    public long getAmount()
    {
        return amount;
    }

    public void setAmount(long amount)
    {
        this.amount = amount;
    }

    public Date getRecordTime()
    {
        return recordTime;
    }

    public void setRecordTime(Date recordTime)
    {
        this.recordTime = recordTime;
    }

    public String getOrderNo()
    {
        return orderNo;
    }

    public void setOrderNo(String orderNo)
    {
        this.orderNo = orderNo;
    }

    public String getRemark()
    {
        return remark;
    }

    public void setRemark(String remark)
    {
        this.remark = remark;
    }
}
